﻿/*
 * @Autor: PK
 * @Date: 2021/12/24 22:20:SS
 */

using System.Threading;
using ShkSimulation.core.optimization.interfaces;

namespace ShkSimulation.core.optimization.impl {

	public class OrderedUniqueIdGenerator: ParallelUniqueIdGenerator {

		private int interlocked;

		public int Generate() {
			return Interlocked.Decrement(ref interlocked);
		}

	}

}